package com.ruoyi.flow.entity;

public class Constant {

    public static class NodeType {
        public static final String NORMAL = "NORMAL"; // 普通
        public static final String START = "START"; // 开始
        public static final String END = "END"; // 结束
        public static final String RESTART = "RESTART"; // 重新开始
    }

    public static class EventType {
        public static final String APPROVE = "APPROVE"; // 审批事件
        public static final String OPERATE = "OPERATE"; // 操作事件
        public static final String OTHER = "OTHER"; // 非流程事件
    }

    /**
     * 几个特殊的事件，事件ID固定为下面几个，需要单独处理流转逻辑
     */
    public static class Event {
        public static final String START = "START"; // 开始
        public static final String REJECT = "REJECT"; // 驳回
        public static final String REJECT_START = "REJECT_START"; // 驳回到开始节点
        public static final String REJECT_RESTART = "REJECT_RESTART"; // 驳回到指定节点
        public static final String BACK = "BACK"; // 拿回
    }

    public static class RejectType {
        public static final String LAST = "LAST"; // 驳回到上个节点
        public static final String START = "START"; // 驳回到开始节点
        public static final String RESTART = "RESTART"; // 驳回到重新开始节点
        public static final String APPOINT = "APPOINT"; // 驳回到指定节点
    }

    public static class HandlerType {
        public static final String USER = "USER"; // 用户
        public static final String ROLE = "ROLE"; // 角色
        public static final String DEPT = "DEPT"; // 部门
    }

    public static class Bool {
        public static final Character YES = '1';
        public static final Character NO = '0';
    }


}
